package com.changyinBus.system.service.impl;

import com.changyinBus.common.core.domain.entity.SysSite;
import com.changyinBus.system.mapper.SysSiteMapper;
import com.changyinBus.system.service.ISysSiteService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 站点 业务层处理
 */
@Service
public class SysSiteServiceImpl implements ISysSiteService {
    @Resource
    private SysSiteMapper sysSiteMapper;

    @Override
    public List<SysSite> selectSiteList(SysSite site) {
        return sysSiteMapper.selectSiteList(site);
    }

    @Override
    public SysSite selectSiteById(Long siteId) {
        return sysSiteMapper.selectSiteById(siteId);
    }

    @Override
    public int insertSite(SysSite site) {
        return sysSiteMapper.insertSite(site);
    }

    @Override
    public int updateSite(SysSite site) {
        return sysSiteMapper.updateSite(site);
    }

    @Override
    public int deleteSiteById(Long siteId) {
        return sysSiteMapper.deleteSiteById(siteId);
    }

    @Override
    public int deleteSiteByIds(Long[] siteIds) {
        return sysSiteMapper.deleteSiteByIds(siteIds);
    }

    @Override
    public int updateSiteStatus(Long siteId, int status) {
        return sysSiteMapper.updateSiteStatus(siteId, status);
    }
}
